import { createRouter, createWebHistory } from 'vue-router'
import home from '@/views/home.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 404页面
    {
      path: '/:catchAll(.*)',
      name: 'NotFound',
      component: () => import('@/components/page404/index.vue')
    },
    {
      path: '/',
      name: 'home',
      // 主页
      component: home
    },
    {
      path: '/designer',
      name: 'designer',
      // 设计师列表
      component: () => import('@/views/designer/DesignerList.vue')
    },
    { 
      path: '/designerdetails',
      name: 'designerdetails',
      // 设计师详情
      component: () => import('@/views/designer/DesignerDetails.vue')
    }
    ,
    {
      path: '/recruitment',
      name: 'recruitment',
      //  设计师寻找
      component: () => import('@/views/designer/Recruitment.vue')
    }

    ,
    {
      path: '/sign',
      name: 'sign',
      // 登录
      component: () => import('@/views/sign/SignIn.vue')
    }
    ,
    {
      path: '/register',
      name: 'register',
      //  注册
      component: () => import('@/views/register/Register.vue')
    }
    ,
    {
      path: '/personal',
      name: 'personal',
      //  个人中心
      component: () => import('@/views/PersonalCenter/Personal.vue')
    },
    {
      path: '/collect',
      name: 'collect',
      //  收藏
      component: () => import('@/views/collect/CollectList.vue')
    },
    {
      path: '/editing',
      name: 'editing',
      //  收藏编辑
      component: () => import('@/views/collect/CollectEditing.vue')
    },
    {
      path: '/personaldata',
      name: 'personaldata',
      //  编辑个人资料
      component: () => import('@/views/PersonalCenter/PersonalData.vue')
    },
    {
      path: '/passcheck',
      name: 'passcheck',
      //  通行证
      component: () => import('@/views/PersonalCenter/PassCheck.vue')
    }
    ,
    {
      path: '/designersettled',
      name: 'designersettled',
      //  设计师入驻
      component: () => import('@/views/designer/DesignerSettled.vue')
    },
    {
      path: '/uploadworks',
      name: 'uploadworks',
      //  设计师上传作品
      component: () => import('@/views/designer/UploadWorks.vue')
    }
    ,
    {
      path: '/studylist',
      name: 'studylist',
      //  学习列表
      component: () => import('@/views/study/StudyList.vue')
    }

    ,
    {
      path: '/studydetail',
      name: 'studydetai',
      //  学习详情
      component: () => import('@/views/study/StudyDetail.vue')
    },
    // 站酷

    {
      path: '/stationlist',
      name: 'stationlist',
      component: () => import('@/views/Stationcool/StationList.vue')
    },
  ]

})

export default router
